home *** CD-ROM | disk | FTP | other *** search
- #include "kant build dispatch.h"
- #include "kant build dialogs.h"
- #include "kant build files.h"
- #include "kant build lists.h"
- #include "kant build window.h"
- #include "text twiddling.h"
- #include "graphics.h"
- #include "menus.h"
- #include "window layer.h"
- #include "generic window handlers.h"
- #include "program globals.h"
-
- void DoNewDispatch(WindowPtr theWindow, Boolean isRef)
- {
- if (isRef)
- DoNewRef(theWindow);
- else
- DoNewInstantiation(theWindow);
- }
-
- void DoEditDispatch(WindowPtr theWindow)
- {
- if (ReferenceListActiveQQ())
- DoEditRef(theWindow);
- else
- DoEditInstantiation(theWindow);
- }
-
- void DoDeleteDispatch(WindowPtr theWindow)
- {
- if (ReferenceListActiveQQ())
- DoDeleteRef(theWindow);
- else
- DoDeleteInstantiation(theWindow);
- }
-
- void DoMarkInterestingDispatch(WindowPtr theWindow)
- {
- Boolean oldState;
- Str255 referenceName;
-
- GetHighlightedReferenceName(referenceName);
- oldState=HighlightedReferenceInterestingQQ();
- SetInterestingBit(GetWindowFS(theWindow), referenceName, !oldState);
- RebuildInsertMenu();
- SetHighlightedReferenceInteresting(!oldState);
- }
-
- void DoShowMessageDispatch(WindowPtr theWindow)
- {
- gShowMessageBox=!gShowMessageBox;
- EraseRect(&(theWindow->portRect));
- ResizeTheBuildWindow(theWindow);
- InvalRect(&(theWindow->portRect));
- }
-
- void DoShowToolbarDispatch(WindowPtr theWindow)
- {
- gShowToolbar=!gShowToolbar;
- EraseRect(&(theWindow->portRect));
- ResizeTheBuildWindow(theWindow);
- InvalRect(&(theWindow->portRect));
- }
-